import { _ as _export_sfc, m as mpMixin, a as mixin, c as createBlock, o as openBlock, n as normalizeStyle, i as index$g, j as resolveEasycom, J as __easycom_0, k as resolveDynamicComponent, w as withCtx, b as createVNode, e as createCommentVNode, f as normalizeClass, r as renderSlot, s as index$i, t as createTextVNode, u as toDisplayString, x as useMainStore, y as storeToRefs, z as ref, A as computed, B as onLoad, U as onShow, ab as userGetUserInfo, ac as mineService, p as index$q, H as unref, g as createElementBlock, F as Fragment, h as renderList, a1 as navigateTo, a2 as makePhoneCall } from './index-Cc4oxzDN.js';
import { _ as __easycom_3$1 } from './layout.FALqt04o.js';

const props$2 = {
	props: {
		color: {
			type: String,
			default: '#d6d7d9'
		},
		// 长度，竖向时表现为高度，横向时表现为长度，可以为百分比，带px单位的值等
		length: {
			type: [String, Number],
			default: '100%'
		},
		// 线条方向，col-竖向，row-横向
		direction: {
			type: String,
			default: 'row'
		},
		// 是否显示细边框
		hairline: {
			type: Boolean,
			default: true
		},
		// 线条与上下左右元素的间距，字符串形式，如"30px"、"20px 30px"
		margin: {
			type: [String, Number],
			default: 0
		},
		// 是否虚线，true-虚线，false-实线
		dashed: {
			type: Boolean,
			default: false
		},
		...uni.$uv?.props?.line
	}
};

/**
	 * line 线条
	 * @description 此组件一般用于显示一根线条，用于分隔内容块，有横向和竖向两种模式，且能设置0.5px线条，使用也很简单
	 * @tutorial https://www.uvui.cn/components/line.html
	 * @property {String}			color		线条的颜色 ( 默认 '#d6d7d9' )
	 * @property {String | Number}	length		长度，竖向时表现为高度，横向时表现为长度，可以为百分比，带px单位的值等 ( 默认 '100%' )
	 * @property {String}			direction	线条的方向，row-横向，col-竖向 (默认 'row' )
	 * @property {Boolean}			hairline	是否显示细线条 (默认 true )
	 * @property {String | Number}	margin		线条与上下左右元素的间距，字符串形式，如"30px"  (默认 0 )
	 * @property {Boolean}			dashed		是否虚线，true-虚线，false-实线 (默认 false )
	 * @property {Object}			customStyle	定义需要用到的外部样式
	 * @example <uv-line color="red"></uv-line>
	 */
	const _sfc_main$3 = {
		name: 'uv-line',
		mixins: [mpMixin, mixin, props$2],
		computed: {
			lineStyle() {
				const style = {};
				style.margin = this.margin;
				// 如果是水平线条，边框高度为1px，再通过transform缩小一半，就是0.5px了
				if (this.direction === 'row') {
					// 此处采用兼容分开写，兼容nvue的写法
					style.borderBottomWidth = '1px';
					style.borderBottomStyle = this.dashed ? 'dashed' : 'solid';
					style.width = this.$uv.addUnit(this.length);
					if (this.hairline) style.transform = 'scaleY(0.5)';
				} else {
					// 如果是竖向线条，边框宽度为1px，再通过transform缩小一半，就是0.5px了
					style.borderLeftWidth = '1px';
					style.borderLeftStyle = this.dashed ? 'dashed' : 'solid';
					style.height = this.$uv.addUnit(this.length);
					if (this.hairline) style.transform = 'scaleX(0.5)';
				}
				style.borderColor = this.color;
				return this.$uv.deepMerge(style, this.$uv.addStyle(this.customStyle))
			}
		}
	};

function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
  const _component_v_uni_view = index$g;

  return (openBlock(), createBlock(_component_v_uni_view, {
    class: "uv-line",
    style: normalizeStyle([$options.lineStyle])
  }, null, 8, ["style"]))
}
const __easycom_2$1 = /*#__PURE__*/_export_sfc(_sfc_main$3, [['render',_sfc_render$2],['__scopeId',"data-v-c767f31f"]]);

const props$1 = {
	props: {
		// 标题
		title: {
			type: [String, Number],
			default: ''
		},
		// 标题下方的描述信息
		label: {
			type: [String, Number],
			default: ''
		},
		// 右侧的内容
		value: {
			type: [String, Number],
			default: ''
		},
		// 左侧图标名称，或者图片链接(本地文件建议使用绝对地址)
		icon: {
			type: String,
			default: ''
		},
		// 是否禁用cell
		disabled: {
			type: Boolean,
			default: false
		},
		// 是否显示下边框
		border: {
			type: Boolean,
			default: true
		},
		// 内容是否垂直居中(主要是针对右侧的value部分)
		center: {
			type: Boolean,
			default: true
		},
		// 点击后跳转的URL地址
		url: {
			type: String,
			default: ''
		},
		// 链接跳转的方式，内部使用的是uvui封装的route方法，可能会进行拦截操作
		linkType: {
			type: String,
			default: 'navigateTo'
		},
		// 是否开启点击反馈(表现为点击时加上灰色背景)
		clickable: {
			type: Boolean,
			default: false
		},
		// 是否展示右侧箭头并开启点击反馈
		isLink: {
			type: Boolean,
			default: false
		},
		// 是否显示表单状态下的必填星号(此组件可能会内嵌入input组件)
		required: {
			type: Boolean,
			default: false
		},
		// 右侧的图标箭头
		rightIcon: {
			type: String,
			default: 'arrow-right'
		},
		// 右侧箭头的方向，可选值为：left，up，down
		arrowDirection: {
			type: String,
			default: ''
		},
		// 左侧图标样式
		iconStyle: {
			type: [Object, String],
			default: () => {
				return {}
			}
		},
		// 右侧箭头图标的样式
		rightIconStyle: {
			type: [Object, String],
			default: () => {
				return {}
			}
		},
		// 标题的样式
		titleStyle: {
			type: [Object, String],
			default: () => {
				return {}
			}
		},
		// 单位元的大小，可选值为large
		size: {
			type: String,
			default: ''
		},
		// 点击cell是否阻止事件传播
		stop: {
			type: Boolean,
			default: true
		},
		// 标识符，cell被点击时返回
		name: {
			type: [Number, String],
			default: ''
		},
		// 单元格自定义样式
		cellStyle: {
			type: [Object, String],
			default: () => {}
		},
		...uni.$uv?.props?.cell
	}
};

/**
	 * cell  单元格
	 * @description cell单元格一般用于一组列表的情况，比如个人中心页，设置页等。
	 * @tutorial https://www.uvui.cn/components/cell.html
	 * @property {String | Number}	title			标题
	 * @property {String | Number}	label			标题下方的描述信息
	 * @property {String | Number}	value			右侧的内容
	 * @property {String}			icon			左侧图标名称，或者图片链接(本地文件建议使用绝对地址)
	 * @property {Boolean}			disabled		是否禁用cell	
	 * @property {Boolean}			border			是否显示下边框 (默认 true )
	 * @property {Boolean}			center			内容是否垂直居中(主要是针对右侧的value部分) (默认 false )
	 * @property {String}			url				点击后跳转的URL地址
	 * @property {String}			linkType		链接跳转的方式，内部使用的是uvui封装的route方法，可能会进行拦截操作 (默认 'navigateTo' )
	 * @property {Boolean}			clickable		是否开启点击反馈(表现为点击时加上灰色背景) （默认 false ） 
	 * @property {Boolean}			isLink			是否展示右侧箭头并开启点击反馈 （默认 false ）
	 * @property {Boolean}			required		是否显示表单状态下的必填星号(此组件可能会内嵌入input组件) （默认 false ）
	 * @property {String}			rightIcon		右侧的图标箭头 （默认 'arrow-right'）
	 * @property {String}			arrowDirection	右侧箭头的方向，可选值为：left，up，down
	 * @property {Object | String}			rightIconStyle	右侧箭头图标的样式
	 * @property {Object | String}			titleStyle		标题的样式
	 * @property {Object | String}			iconStyle		左侧图标样式
	 * @property {String}			size			单位元的大小，可选值为 large，normal，mini 
	 * @property {Boolean}			stop			点击cell是否阻止事件传播 (默认 true )
	 * @property {Object | String}  cellStyle 单元格自定义样式
	 * @property {Object}			customStyle		定义需要用到的外部样式
	 * 
	 * @event {Function}			click			点击cell列表时触发
	 * @example 该组件需要搭配cell-group组件使用，见官方文档示例
	 */
	const _sfc_main$2 = {
		name: 'uv-cell',
		emits: ['click'],
		mixins: [mpMixin, mixin, props$1],
		computed: {
			titleTextStyle() {
				return this.$uv.addStyle(this.titleStyle)
			}
		},
		methods: {
			// 点击cell
			clickHandler(e) {
				if (this.disabled) return
				this.$emit('click', {
					name: this.name
				});
				// 如果配置了url(此props参数通过mixin引入)参数，跳转页面
				this.openPage();
				// 是否阻止事件传播
				this.stop && this.preventEvent(e);
			},
		}
	};

function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
  const _component_uv_icon = resolveEasycom(resolveDynamicComponent("uv-icon"), __easycom_0);
  const _component_v_uni_view = index$g;
  const _component_v_uni_text = index$i;
  const _component_uv_line = resolveEasycom(resolveDynamicComponent("uv-line"), __easycom_2$1);

  return (openBlock(), createBlock(_component_v_uni_view, {
    class: normalizeClass(["uv-cell", [_ctx.customClass]]),
    style: normalizeStyle([_ctx.$uv.addStyle(_ctx.customStyle)]),
    "hover-class": (!_ctx.disabled && (_ctx.clickable || _ctx.isLink)) ? 'uv-cell--clickable' : '',
    "hover-stay-time": 250,
    onClick: $options.clickHandler
  }, {
    default: withCtx(() => [
      createVNode(_component_v_uni_view, {
        class: normalizeClass(["uv-cell__body", [ _ctx.center && 'uv-cell--center', _ctx.size === 'large' && 'uv-cell__body--large']]),
        style: normalizeStyle([_ctx.cellStyle])
      }, {
        default: withCtx(() => [
          createVNode(_component_v_uni_view, { class: "uv-cell__body__content" }, {
            default: withCtx(() => [
              createVNode(_component_v_uni_view, { class: "uv-cell__left-icon-wrap" }, {
                default: withCtx(() => [
                  renderSlot(_ctx.$slots, "icon", {}, () => [
                    (_ctx.icon)
                      ? (openBlock(), createBlock(_component_uv_icon, {
                          key: 0,
                          name: _ctx.icon,
                          "custom-style": _ctx.iconStyle,
                          size: _ctx.size === 'large' ? 22 : 18
                        }, null, 8, ["name", "custom-style", "size"]))
                      : createCommentVNode("", true)
                  ], true)
                ]),
                _: 3
              }),
              createVNode(_component_v_uni_view, { class: "uv-cell__title" }, {
                default: withCtx(() => [
                  renderSlot(_ctx.$slots, "title", {}, () => [
                    (_ctx.title)
                      ? (openBlock(), createBlock(_component_v_uni_text, {
                          key: 0,
                          class: normalizeClass(["uv-cell__title-text", [_ctx.disabled && 'uv-cell--disabled', _ctx.size === 'large' && 'uv-cell__title-text--large']]),
                          style: normalizeStyle([$options.titleTextStyle])
                        }, {
                          default: withCtx(() => [
                            createTextVNode(toDisplayString(_ctx.title), 1)
                          ]),
                          _: 1
                        }, 8, ["style", "class"]))
                      : createCommentVNode("", true)
                  ], true),
                  renderSlot(_ctx.$slots, "label", {}, () => [
                    (_ctx.label)
                      ? (openBlock(), createBlock(_component_v_uni_text, {
                          key: 0,
                          class: normalizeClass(["uv-cell__label", [_ctx.disabled && 'uv-cell--disabled', _ctx.size === 'large' && 'uv-cell__label--large']])
                        }, {
                          default: withCtx(() => [
                            createTextVNode(toDisplayString(_ctx.label), 1)
                          ]),
                          _: 1
                        }, 8, ["class"]))
                      : createCommentVNode("", true)
                  ], true)
                ]),
                _: 3
              })
            ]),
            _: 3
          }),
          renderSlot(_ctx.$slots, "value", {}, () => [
            (!_ctx.$uv.test.empty(_ctx.value))
              ? (openBlock(), createBlock(_component_v_uni_text, {
                  key: 0,
                  class: normalizeClass(["uv-cell__value", [_ctx.disabled && 'uv-cell--disabled', _ctx.size === 'large' && 'uv-cell__value--large']])
                }, {
                  default: withCtx(() => [
                    createTextVNode(toDisplayString(_ctx.value), 1)
                  ]),
                  _: 1
                }, 8, ["class"]))
              : createCommentVNode("", true)
          ], true),
          (_ctx.$slots['right-icon'] || _ctx.isLink)
            ? (openBlock(), createBlock(_component_v_uni_view, {
                key: 0,
                class: normalizeClass(["uv-cell__right-icon-wrap", [`uv-cell__right-icon-wrap--${_ctx.arrowDirection}`]])
              }, {
                default: withCtx(() => [
                  (_ctx.$slots['right-icon'])
                    ? renderSlot(_ctx.$slots, "right-icon", { key: 0 }, undefined, true)
                    : (openBlock(), createBlock(_component_uv_icon, {
                        key: 1,
                        name: _ctx.rightIcon,
                        "custom-style": _ctx.rightIconStyle,
                        color: _ctx.disabled ? '#c8c9cc' : 'info',
                        size: _ctx.size === 'large' ? 18 : 16
                      }, null, 8, ["name", "custom-style", "color", "size"]))
                ]),
                _: 3
              }, 8, ["class"]))
            : createCommentVNode("", true)
        ]),
        _: 3
      }, 8, ["class", "style"]),
      (_ctx.border)
        ? (openBlock(), createBlock(_component_uv_line, { key: 0 }))
        : createCommentVNode("", true)
    ]),
    _: 3
  }, 8, ["class", "style", "hover-class", "onClick"]))
}
const __easycom_2 = /*#__PURE__*/_export_sfc(_sfc_main$2, [['render',_sfc_render$1],['__scopeId',"data-v-1976e35c"]]);

const props = {
	props: {
		// 分组标题
		title: {
			type: String,
			default: ''
		},
		// 是否显示外边框
		border: {
			type: Boolean,
			default: true
		},
		...uni.$uv?.props?.cellGroup
	}
};

/**
	 * cellGroup  单元格
	 * @description cell单元格一般用于一组列表的情况，比如个人中心页，设置页等。
	 * @tutorial https://www.uvui.cn/components/cell.html
	 * 
	 * @property {String}	title		分组标题
	 * @property {Boolean}	border		是否显示外边框 (默认 true )
	 * @property {Object}	customStyle	定义需要用到的外部样式
	 * 
	 * @event {Function} click 	点击cell列表时触发
	 * @example <uv-cell-group title="设置喜好">
	 */
	const _sfc_main$1 = {
		name: 'uv-cell-group',
		mixins: [mpMixin, mixin, props]
	};

function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  const _component_v_uni_text = index$i;
  const _component_v_uni_view = index$g;
  const _component_uv_line = resolveEasycom(resolveDynamicComponent("uv-line"), __easycom_2$1);

  return (openBlock(), createBlock(_component_v_uni_view, {
    style: normalizeStyle([_ctx.$uv.addStyle(_ctx.customStyle)]),
    class: normalizeClass([[_ctx.customClass], "uv-cell-group"])
  }, {
    default: withCtx(() => [
      (_ctx.title)
        ? (openBlock(), createBlock(_component_v_uni_view, {
            key: 0,
            class: "uv-cell-group__title"
          }, {
            default: withCtx(() => [
              renderSlot(_ctx.$slots, "title", {}, () => [
                createVNode(_component_v_uni_text, { class: "uv-cell-group__title__text" }, {
                  default: withCtx(() => [
                    createTextVNode(toDisplayString(_ctx.title), 1)
                  ]),
                  _: 1
                })
              ], true)
            ]),
            _: 3
          }))
        : createCommentVNode("", true),
      createVNode(_component_v_uni_view, { class: "uv-cell-group__wrapper" }, {
        default: withCtx(() => [
          (_ctx.border)
            ? (openBlock(), createBlock(_component_uv_line, { key: 0 }))
            : createCommentVNode("", true),
          renderSlot(_ctx.$slots, "default", {}, undefined, true)
        ]),
        _: 3
      })
    ]),
    _: 3
  }, 8, ["style", "class"]))
}
const __easycom_3 = /*#__PURE__*/_export_sfc(_sfc_main$1, [['render',_sfc_render],['__scopeId',"data-v-97f3db78"]]);

const _sfc_main = {
  __name: 'mine',
  setup(__props) {

	const main = useMainStore();
	const {
		member,
		isLogin
	} = storeToRefs(main);

	ref('个人中心');
	const services = ref([]);

	computed(() => {
		if (!isLogin.value) return 0
		const {
			currentValue,
			needValue
		} = member.value;
		return currentValue / (currentValue + needValue) * 100
	});

	onLoad(() => {
		getServices();
	});
	onShow(() => {
		getUserInfo();
	});


	const getUserInfo = async () => {
		if (isLogin.value) {
			let data = await userGetUserInfo();
			if (data) {
				main.SET_MEMBER(data);
				if (data.accesses) {
					console.log("data.accesses:", data.accesses);
					main.SET_ACCESSES(data.accesses);
				}
			}
		}
	};
	const getServices = async () => {
		let data = await mineService();
		if (data) {
			services.value = data;
		}
	};
	const makePhoneCall$1 = (phoneNumber) => {
		makePhoneCall({
			phoneNumber: phoneNumber,
		});
	};
	const login = () => {
		navigateTo({
			url: '/pages/login/login'
		});
	};
	const serv = (item) => {
		switch (item.type) {
			case 'pages':
				if (!isLogin.value) {
					login();
					return
				}
				navigateTo({
					url: item.pages
				});
				break;
			case 'miniprogram':
				uni.navigateToMiniProgram({
					appId: item.app_id
				});
				break;
			case 'menu':
				navigateTo({
					url: '/pages/components/pages/mine/service?id=' + item.id + '&name=' + item.name
				});
				break;
			case 'content':
				navigateTo({
					url: '/pages/components/pages/mine/content?id=' + item.id + '&name=' + item.name
				});
				break;
		}
	};

return (_ctx, _cache) => {
  const _component_v_uni_image = index$q;
  const _component_v_uni_view = index$g;
  const _component_uv_cell = resolveEasycom(resolveDynamicComponent("uv-cell"), __easycom_2);
  const _component_uv_cell_group = resolveEasycom(resolveDynamicComponent("uv-cell-group"), __easycom_3);
  const _component_layout = resolveEasycom(resolveDynamicComponent("layout"), __easycom_3$1);

  return (openBlock(), createBlock(_component_layout, null, {
    default: withCtx(() => [
      createVNode(_component_v_uni_view, { class: "container" }, {
        default: withCtx(() => [
          createVNode(_component_v_uni_view, { style: {"padding":"0 30rpx"} }, {
            default: withCtx(() => [
              createVNode(_component_v_uni_view, { class: "d-flex flex-column bg-white user-box" }, {
                default: withCtx(() => [
                  createVNode(_component_v_uni_view, { class: "d-flex align-items-center" }, {
                    default: withCtx(() => [
                      createVNode(_component_v_uni_view, { class: "avatar rounded-circle" }, {
                        default: withCtx(() => [
                          createVNode(_component_v_uni_image, {
                            src: unref(isLogin) ? unref(member).avatar ? unref(member).avatar : '/static/images/mine/default.png' : '/static/images/mine/default.png'
                          }, null, 8, ["src"])
                        ]),
                        _: 1
                      }),
                      createVNode(_component_v_uni_view, {
                        class: "d-flex flex-column flex-fill overflow-hidden",
                        style: {"margin-top":"20rpx"}
                      }, {
                        default: withCtx(() => [
                          (unref(isLogin))
                            ? (openBlock(), createBlock(_component_v_uni_view, {
                                key: 0,
                                class: "font-size-lg font-weight-bold d-flex justify-content-start align-items-center",
                                onClick: _cache[0] || (_cache[0] = $event => (serv({type:'pages',pages:'/pages/components/pages/mine/userinfo'})))
                              }, {
                                default: withCtx(() => [
                                  createVNode(_component_v_uni_view, { class: "text-truncate" }, {
                                    default: withCtx(() => [
                                      createTextVNode(toDisplayString(unref(member).nickname), 1)
                                    ]),
                                    _: 1
                                  }),
                                  createVNode(_component_v_uni_view, { class: "iconfont iconarrow-right line-height-100" })
                                ]),
                                _: 1
                              }))
                            : (openBlock(), createBlock(_component_v_uni_view, {
                                key: 1,
                                class: "font-size-lg font-weight-bold",
                                onClick: login
                              }, {
                                default: withCtx(() => [
                                  createTextVNode("游客")
                                ]),
                                _: 1
                              }))
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  }),
                  createVNode(_component_v_uni_view, { class: "w-100 d-flex align-items-center just-content-center" }, {
                    default: withCtx(() => [
                      createVNode(_component_v_uni_view, { class: "user-grid" }, {
                        default: withCtx(() => [
                          createVNode(_component_v_uni_view, { class: "value font-size-extra-lg font-weight-bold text-color-base" }, {
                            default: withCtx(() => [
                              createTextVNode(toDisplayString(unref(isLogin) ? unref(member).couponCount : 0), 1)
                            ]),
                            _: 1
                          }),
                          createVNode(_component_v_uni_view, { class: "font-size-sm text-color-assist" }, {
                            default: withCtx(() => [
                              createTextVNode("优惠券")
                            ]),
                            _: 1
                          })
                        ]),
                        _: 1
                      }),
                      createVNode(_component_v_uni_view, { class: "user-grid" }, {
                        default: withCtx(() => [
                          createVNode(_component_v_uni_view, { class: "value font-size-extra-lg font-weight-bold text-color-base" }, {
                            default: withCtx(() => [
                              createTextVNode(toDisplayString(unref(isLogin) ? unref(member).integral : 0), 1)
                            ]),
                            _: 1
                          }),
                          createVNode(_component_v_uni_view, { class: "font-size-sm text-color-assist" }, {
                            default: withCtx(() => [
                              createTextVNode("积分")
                            ]),
                            _: 1
                          })
                        ]),
                        _: 1
                      }),
                      createVNode(_component_v_uni_view, { class: "user-grid" }, {
                        default: withCtx(() => [
                          createVNode(_component_v_uni_view, { class: "value font-size-extra-lg font-weight-bold text-color-base" }, {
                            default: withCtx(() => [
                              createTextVNode(toDisplayString(unref(isLogin) ? unref(member).nowMoney : 0), 1)
                            ]),
                            _: 1
                          }),
                          createVNode(_component_v_uni_view, { class: "font-size-sm text-color-assist" }, {
                            default: withCtx(() => [
                              createTextVNode("余额")
                            ]),
                            _: 1
                          })
                        ]),
                        _: 1
                      })
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              })
            ]),
            _: 1
          }),
          createVNode(_component_v_uni_view, { class: "service-box" }, {
            default: withCtx(() => [
              createVNode(_component_v_uni_view, {
                class: "font-size-lg text-color-base font-weight-bold",
                style: {"margin-bottom":"20rpx"}
              }, {
                default: withCtx(() => [
                  createTextVNode("我的服务")
                ]),
                _: 1
              }),
              createVNode(_component_v_uni_view, { class: "u-m-t-20" }, {
                default: withCtx(() => [
                  createVNode(_component_uv_cell_group, null, {
                    default: withCtx(() => [
                      (openBlock(true), createElementBlock(Fragment, null, renderList(services.value, (item, index) => {
                        return (openBlock(), createElementBlock(Fragment, { key: index }, [
                          (item.type == 'contact')
                            ? (openBlock(), createBlock(_component_uv_cell, {
                                key: 0,
                                title: item.name,
                                isLink: true
                              }, {
                                icon: withCtx(() => [
                                  createVNode(_component_v_uni_image, {
                                    src: item.image,
                                    style: {"width":"40rpx","height":"40rpx"},
                                    class: "mr-1"
                                  }, null, 8, ["src"])
                                ]),
                                _: 2
                              }, 1032, ["title"]))
                            : (item.type == 'call')
                              ? (openBlock(), createBlock(_component_uv_cell, {
                                  key: 1,
                                  isLink: true,
                                  title: item.name,
                                  onClick: $event => (makePhoneCall$1(item.phone))
                                }, {
                                  icon: withCtx(() => [
                                    createVNode(_component_v_uni_image, {
                                      src: item.image,
                                      style: {"width":"40rpx","height":"40rpx"},
                                      class: "mr-1"
                                    }, null, 8, ["src"])
                                  ]),
                                  _: 2
                                }, 1032, ["title", "onClick"]))
                              : (openBlock(), createBlock(_component_uv_cell, {
                                  key: 2,
                                  isLink: true,
                                  title: item.name,
                                  onClick: $event => (serv(item))
                                }, {
                                  icon: withCtx(() => [
                                    createVNode(_component_v_uni_image, {
                                      src: item.image,
                                      style: {"width":"40rpx","height":"40rpx"},
                                      class: "mr-1"
                                    }, null, 8, ["src"])
                                  ]),
                                  _: 2
                                }, 1032, ["title", "onClick"]))
                        ], 64))
                      }), 128))
                    ]),
                    _: 1
                  })
                ]),
                _: 1
              })
            ]),
            _: 1
          })
        ]),
        _: 1
      })
    ]),
    _: 1
  }))
}
}

};
const mine = /*#__PURE__*/_export_sfc(_sfc_main, [['__scopeId',"data-v-15dae389"]]);

export { mine as default };
